<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Standard\Bundle\ModuleArticleBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
/**
 * Description of IndexController
 *
 * @author tuong.luu
 */
class ArticleController extends Controller{
    //put your code here
    /**
     * @Route("/hello/{name}")
     * @Template()
     */
    public function showAction(){
        
        $service = $this->container->get('article.service');
    	echo $article = $service->getDemo(1);
        
        return $this->render('StandardModuleArticleBundle:Article:show.html.twig');
    }
}
